﻿using AlanAamy.Net.TemperatureConverter.Infrastructure.Constants;
using AlanAamy.Net.TemperatureConverter.Models;
using Moq;
using NUnit.Framework;

namespace AlanAamy.Net.TemperatureConverter.Tests
{
    [TestFixture]
    public sealed class LeftSequenceObserverModelTests
    {
        [Test]
        public void LeftSequenceObserverModelInitialValueStored()
        {
            //Arrange
            var mockModel = new Mock<ILeftSequenceObserverModel>();

            //Act
            mockModel.SetupProperty(_ => _.Value,1M);
            mockModel.SetupProperty(_ => _.Unit, TemperatureUnit.Celsius);

            //Assert
            Assert.AreEqual(1M, mockModel.Object.Value);
            Assert.AreEqual(TemperatureUnit.Celsius, mockModel.Object.Unit);
        }
    }
}
